<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=path%>">
<title>考试系统</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 添加编程题</span></td>
              </tr>
            </table>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  <td>
    <form action="<%= request.getContextPath() %>/Teacher/TeacherAction!Programadd.action" method="post"  enctype="multipart/form-data">
	<table width="70%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">编程题标题 </span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="text" name="programming.title" size="50" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">编程题内容</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> <textarea name="programming.content"  cols="100" rows="15" >
 </textarea> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">输入描述</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <textarea name="programming.inputdescribe" cols="100" rows="10"></textarea> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">输出描述</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <textarea name="programming.outputdescribe" cols="100" rows="10"></textarea> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">输入样例</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <textarea name="programming.inputsample" cols="100" rows="10"></textarea> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">输出样例</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <textarea name="programming.outputsample" cols="100" rows="10"></textarea> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例1输入</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload0" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例1输出</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload1" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例2输入</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload2" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例2输出</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload3" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例3输入</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload4" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例3输出</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload5" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例4输入</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload6" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例4输出</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload7" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例5输入</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload8" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试用例5输出</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="file" name="upload9" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">是否公开</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"><select name="programming.visible">
      				<option value="1" selected>私有</option>
      				<option value="0"> 公开</option>
      			</select></div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">c运行时间（秒） </span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="text" name="programming.runtime" size="50" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">java运行时间（秒） </span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="text" name="programming.runtimeforjava" size="50" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">c内存限制（Kb） </span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="text" name="programming.memoryforc" size="50" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">java内存限制（Kb） </span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> <input type="text" name="programming.memoryforjava" size="50" /> </div></td>
		</tr>
		<tr>
			 <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">分数</span></div></td>
			 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="left"> 
			 <% // <input type="text" name="Pscore" size="3" value="10" /> %>
			 <select name="programming.score">
				    <option value="5">1</option>
             		<option value="5">2</option>
             		<option value="5">3</option>
             		<option value="5">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="8">8</option>
                    <option value="10" selected>10</option>
                    <option value="12">12</option>
                    <option value="15">15</option>
                    <option value="18">18</option>
                    <option value="20">20</option>
                    <option value="25">25</option>
                    <option value="30">30</option>
                    <option value="35">35</option>
                    <option value="40">40</option>
				</select>
			 </div></td>
		</tr>
		<tr>
			<td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"><input type=hidden name="ID" value=<%=session.getAttribute("ID") %> /> <input type="submit" value="提交" /></span></div></td>
			<td height="20"  class="STYLE19"><div align="center"><input type="reset" value="重置" /> </div></td>
		</tr>
	</table>
	</form>
  </td>
  </tr>
</table>	
    		
</body>
</html>
